var fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits.splice(2,5)); //[ 'Apple', 'Mango' ]
console.log(fruits)   //["Banana", "Orange"]